import api from '@/config/api'
import {
  request
} from '@/tools'

const queryIndex = async function (param) {
  const ret = await request({
    url: api.queryIndex,
    method: 'post',
    data: param
  })
  return ret
}

const sign = async function (param) {
  const ret = await request({
    url: api.sign,
    method: 'post',
    data: param
  })
  return ret
}

const updateimgdata = async function (param) {
  const ret = await request({
    url: api.updateimgdata,
    method: 'post',
    data: param
  })
  return ret
}

export {
  queryIndex,
  sign,
  updateimgdata
}
